<%@ Page Language="vb" AutoEventWireup="false" Inherits="InSiteWebApplication.ModelingAuditTrailPopupForm" CodeFile="ModelingAuditTrailPopupForm.aspx.vb" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head runat="server">
    <title>ModelingAuditTrailPopupForm</title>
    <base target="_self" />
    <script id="Infragistics" type="text/javascript">
    <!--
        var storedBandsInitArray = null;
        var storedColsInitArray = null;

        function NewInitGrid(gridId,gridInitArray,bandsInitArray,colsInitArray,eventsInitArray,xmlInitProps,isInsideUpdatePanel,isInsideWARP,firefoxXml)
        {
            OldInitGrid(gridId,gridInitArray,bandsInitArray,colsInitArray,eventsInitArray,xmlInitProps,isInsideUpdatePanel,isInsideWARP,firefoxXml);
            
            storedBandsInitArray = bandsInitArray;
            storedColsInitArray = colsInitArray;
        }

        // Creates a new band dinamically
        function AuditTrailField_XmlHTTPResponseHandler(gridName, rowId, gridResponse)
        {
            var grid = igtbl_getGridById(gridName);
            if(grid)
            {
                var currentBandIndex = rowId.split('_').length - 1;
                if(currentBandIndex >= grid.Bands.length)
                {
                    if(storedBandsInitArray && storedColsInitArray)
                    {
                        var bands = grid.Xml.selectSingleNode("UltraWebGrid/Bands");	            
                        var newBandXml = bands.childNodes[1].cloneNode(true);
                        bands.appendChild(newBandXml);
        		        
                        storedBandsInitArray[currentBandIndex] = new Array();
                        for(var i = 0; i < storedBandsInitArray[currentBandIndex - 1].length; i ++)
                            storedBandsInitArray[currentBandIndex][i] = storedBandsInitArray[currentBandIndex - 1][i];
                        storedBandsInitArray[currentBandIndex].Key = "Table" + currentBandIndex;
        	            
                        storedColsInitArray[currentBandIndex] = storedColsInitArray[currentBandIndex - 1];
        	            
                        grid.Bands[currentBandIndex] = new igtbl_Band(grid, newBandXml,currentBandIndex,storedBandsInitArray,storedColsInitArray);
                    }
                }
            }
        }
    // -->
    </script>

</head>
<body class="FormBody">
    <form id="Form1" method="post" runat="server">
        <fb:RevisionedObject ID="RDOField" runat="server" RDOFormat="Revision" ReadOnly="true" RevisionControl-CssClass="TextSmall" RevisionControl-ID="RevRev"
            Style="z-index: 100; left: 18px; width: 259px; position: absolute; top: 10px"
            Text="RDO Type" DisplayMode="None" TextEditControl-CssClass="TextNDORDOMedium" TextEditControl-ID="Edit" TextEditControl-TabIndex="1" />
        <fb:NamedObject ID="NDOField" runat="server" AutoPostBack="True" LabelControl-CssClass="LabelControl"
            DropDownControl-CssClass="SelectMedium" DropDownControl-Width="161px" TextEditControl-Width="849px"
            TextEditControl-CssClass="TextNDORDOMedium" ReadOnly="True" Style="z-index: 101;
            left: 19px; width: 259px; position: absolute; top: 10px" Text="NDO Type" DisplayMode="None" />

        <fieldset style="z-index:125;left: 18px; width: 850px; position: absolute; top: 75px">
            <fb:Label ID="lblFilter" runat="server" CssClass="LabelControl" LabelType="Designer" LabelName="Lbl_ReturnResultsBetween"></fb:Label>
            <fb:DateChooser ID="dcFromDate" runat="server" UseCurrentTime="true" style="display:inline-block;vertical-align:middle;margin:0 5px;" />
            and
            <fb:DateChooser ID="dcToDate" runat="server" UseCurrentTime="true" style="display:inline-block;vertical-align:middle;margin:0 5px;" />
            <fb:Button ID="btnApplyFilter" runat="server" Text="Go" style="display:inline-block;vertical-align:middle;margin:0 5px;" />
        </fieldset>


        <igtbl:UltraWebGrid ID="AuditTrailField" runat="server" Browser="Xml" Style="z-index: 102;
            left: 8px; position: absolute; top: 125px">
            <DisplayLayout RowHeightDefault="18px" Version="3.00" ViewType="Hierarchical" BorderCollapseDefault="Separate"
                LoadOnDemand="Xml" Name="AuditTrailField" RowSelectorsDefault="No">
                <HeaderStyleDefault VerticalAlign="Middle" Font-Size="8pt" Font-Names="Verdana" BorderColor="Black"
                    BorderStyle="Solid" HorizontalAlign="Left" ForeColor="White" BackColor="Gray"
                    Height="18px">
                    <Padding Left="5px" Right="5px"></Padding>
                    <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
                </HeaderStyleDefault>
                <RowSelectorStyleDefault Width="10px" VerticalAlign="Middle" Font-Size="8pt" Font-Names="Verdana"
                    HorizontalAlign="Center" BackColor="Gray">
                </RowSelectorStyleDefault>
                <FrameStyle Cursor="Default" BorderWidth="1px" Font-Size="8pt" Font-Names="Verdana"
                    BorderColor="DimGray" BorderStyle="Solid" BackColor="#F3F3F6" Height="516px"
                    Width="939px">
                </FrameStyle>
                <FooterStyleDefault BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray">
                    <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
                </FooterStyleDefault>
                <ActivationObject BorderColor="168, 167, 191">
                </ActivationObject>
                <GroupByBox>
                    <BandLabelStyle Font-Size="8pt" Font-Names="Verdana">
                    </BandLabelStyle>
                </GroupByBox>
                <RowExpAreaStyleDefault Font-Size="8pt" Font-Names="Verdana" BackColor="White">
                </RowExpAreaStyleDefault>
                <EditCellStyleDefault BorderWidth="0px" BorderStyle="None">
                </EditCellStyleDefault>
                <RowAlternateStyleDefault BackColor="#F1F1F1">
                </RowAlternateStyleDefault>
                <RowStyleDefault BorderWidth="1px" Font-Size="8pt" Font-Names="Verdana" BorderColor="DarkGray"
                    BorderStyle="Solid" ForeColor="Black" BackColor="Gainsboro">
                    <Padding Left="7px" Right="7px"></Padding>
                    <BorderDetails ColorTop="Gray" WidthLeft="0px" WidthTop="0px" ColorLeft="Gray"></BorderDetails>
                </RowStyleDefault>
                <FilterOptionsDefault>
                    <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                        CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                        Font-Size="11px" Width="200px">
                        <Padding Left="2px" />
                    </FilterDropDownStyle>
                    <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
                    </FilterHighlightRowStyle>
                </FilterOptionsDefault>
                <Pager AllowPaging="True" MinimumPagesForDisplay="2" PageSize="25">
                </Pager>
                <ClientSideEvents XmlHTTPResponseHandler="AuditTrailField_XmlHTTPResponseHandler" />
            </DisplayLayout>
            <Bands>
                <igtbl:UltraGridBand>
                    <AddNewRow View="NotSet" Visible="NotSet">
                    </AddNewRow>
                    <FilterOptions>
                        <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                            CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                            Font-Size="11px" Width="200px">
                            <Padding Left="2px" />
                        </FilterDropDownStyle>
                        <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
                        </FilterHighlightRowStyle>
                    </FilterOptions>
                </igtbl:UltraGridBand>
            </Bands>
        </igtbl:UltraWebGrid>
        <fb:Label ID="DateLabel" runat="server" Style="z-index: 103; left: 535px; position: absolute;
            top: 616px" CssClass="LabelControl" LabelType="Designer" Visible="False" LabelName="Service_TxnDate"></fb:Label>
        <fb:Label ID="UserLabel" runat="server" Style="z-index: 104; left: 535px; position: absolute;
            top: 636px" Visible="False" CssClass="LabelControl" LabelName="Service_User"
            LabelType="Designer"></fb:Label>
        <fb:Label ID="ExecuteActionLabel" runat="server" Style="z-index: 105; left: 622px;
            position: absolute; top: 616px" Visible="False" CssClass="LabelControl" LabelName="Maintenance_ExecuteAction"
            LabelType="Designer"></fb:Label>
        <fb:Label ID="CommentsLabel" runat="server" Style="z-index: 106; left: 622px; position: absolute;
            top: 636px" Visible="False" CssClass="LabelControl" LabelName="Update_Comments"
            LabelType="Designer"></fb:Label>
        <fb:Label ID="ItemLabel" runat="server" Style="z-index: 107; left: 856px; position: absolute;
            top: 616px" CssClass="LabelControl" LabelType="Designer" Visible="False" LabelName="ItemLabel"></fb:Label>
        <fb:Label ID="ItemNameLabel" runat="server" Style="z-index: 108; left: 934px; position: absolute;
            top: 616px" CssClass="LabelControl" LabelType="Designer" Visible="False" LabelName="ItemNameLabel"></fb:Label>
        <fb:Label ID="BeforeLabel" runat="server" Style="z-index: 109; left: 856px; position: absolute;
            top: 636px" Visible="False" CssClass="LabelControl" LabelName="BeforeLabel" LabelType="Designer"></fb:Label>
        <fb:Label ID="AfterLabel" runat="server" Style="z-index: 110; left: 764px; position: absolute;
            top: 616px" Visible="False" CssClass="LabelControl" LabelName="AfterLabel" LabelType="Designer"></fb:Label>
        <fb:Label ID="ActionLabel" runat="server" Style="z-index: 111; left: 764px; position: absolute;
            top: 636px" Visible="False" CssClass="LabelControl" LabelName="ActionLabel" LabelType="Designer"></fb:Label>
        <fb:Button ID="CloseButton" runat="server" Style="z-index: 112; left: 9px; position: absolute;
            top: 655px" Text="Close" Width="85px" />
        <fb:Message ID="StatusMessage" Style="z-index: 113; left: 8px; position: absolute;
            top: 680px" runat="server" Width="893px" Height="16px"></fb:Message>
    </form>
</body>
</html>